﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
    public partial class frmSanPham : Form
    {
        public frmSanPham()
        {
            InitializeComponent();
        }

        private void frmSanPham_Load(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usTongCongSuat tuVan = new usTongCongSuat();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

       

     

        private void flowLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }

       

        private void btnMachSac_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usMachSac tuVan = new usMachSac();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnQuanLyAcQuy_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usAcQuy tuVan = new usAcQuy();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnGioNang_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usSoGioNang tuVan = new usSoGioNang();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnPin_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usThemPin tuVan = new usThemPin();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnTinhCS_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usTongCongSuat tuVan = new usTongCongSuat();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnTimKiem_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usTimKiem tuVan = new usTimKiem();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnKichDien_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usBoKichDien tuVan = new usBoKichDien();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void btnTBDien_Click(object sender, EventArgs e)
        {
            plmain.Controls.Clear();
            usThietBiDien tuVan = new usThietBiDien();
            tuVan.Dock = DockStyle.Fill;
            plmain.Controls.Add(tuVan);
        }

        private void mnThoat_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void mnTinhCongSuat_Click(object sender, EventArgs e)
        {
            btnTinhCS_Click(sender, e);
        }

        private void mnPin_Click(object sender, EventArgs e)
        {
            btnPin_Click(sender, e);
        }

        private void mnMachSac_Click(object sender, EventArgs e)
        {
            btnMachSac_Click(sender, e);
        }

        private void mnAcQuy_Click(object sender, EventArgs e)
        {
            btnQuanLyAcQuy_Click(sender, e);
        }

        private void mnKichDien_Click(object sender, EventArgs e)
        {
            btnKichDien_Click(sender, e);
        }

        private void mnThietBiDien_Click(object sender, EventArgs e)
        {
            btnTBDien_Click(sender, e);
        }

        private void mnGioNang_Click(object sender, EventArgs e)
        {
            btnGioNang_Click(sender, e);
        }

        private void mnTimKiem_Click(object sender, EventArgs e)
        {
            btnTimKiem_Click(sender, e);
        }

    }
}
